#!/usr/bin/bash

VERSION="0-0-0-1"

if [[ version == "-v" ]] ; then
	echo $VERSION

	exit 2
fi

if [[ "" ==  $1 ]] ; then
	echo "keys: on off
	on  - night-mode on
	off - night-mode off

	-v  - print version and quit
"
	exit 1
else
	command=$1
fi


if [[  "on" == $command ]] ; then
	gammastep -O 2500K
	# redshift -O 2500K
elif [[ "off" == $command ]] ; then
	gammastep -x
	# redshift -x
fi

exit `true`

